<html>
    <head>
        <meta charset="utf-8">
		 <!--要求页面自动适应浏览器的屏幕-->  
    <meta name="viewport"  
        content="width=device-width,initial-scale=1.0,user-scalable=no"> 
    </head>
    <body>
         <nav class="navbar navbar-inverse">
            <div class="container-fluid">
                <div class="navbar-header">
                <a class="navbar-brand" href="__ADMIN__Index/index">控制台</a>
                </div>
                <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <if condition="session('username') eq '' ">
                        <li><a href="#">未登录</a></li>
                    <else />
                        <li><a href="#">{$Think.session.username}</a></li>
                    </if>
                    <li><a href="__HOME__Index/index">返回</a></li>
                </ul>
                </div>
            </div>
        </nav>
    </body>
    <script>
        //时间返回
        function getNowFormatDate() {
            var date = new Date();
            var seperator1 = "-";
            var seperator2 = ":";
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            if (month >= 1 && month <= 9) {
                month = "0" + month;
            }
            if (strDate >= 0 && strDate <= 9) {
                strDate = "0" + strDate;
            }
            var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
                    + " " + date.getHours() + seperator2 + date.getMinutes()
                    + seperator2 + date.getSeconds();
            return currentdate;
        }
    </script>
</html>